﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class actionable
    {


        public virtual int fingerGuess(Character name)
        {

            Random random = new Random();

            int output = random.Next(3) + 1;

            int Result;

            switch (output)
            {
                case 1:
                    Console.WriteLine(name.heroName + ":出剪刀");//-1
                    Result = 1;
                    break;
                case 2:
                    Console.WriteLine(name.heroName + ":出拳头");//0
                    Result = 2;
                    break;
                case 3:
                    Console.WriteLine(name.heroName + ":出布");//1
                    Result = 3;
                    break;


                default:
                    Result = 1;
                    break;
            }

            return Result;




        }











    }
}
